import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/ruoyi";

// 查询用警申请列表
export function getUserPoliApplList(data,query) {
  return request({
    url: '/bussiness/PoliceApply/list',
    method: 'post',
    params: query,
    data: data,
    isEncrypt: false
  })
}
// 查询用警申请信息详情
export function getUserPoliApplInfo(query) {
  return request({
    url: '/bussiness/PoliceApply/info?id=' + query,
    method: 'get',
  })
}

// 新增用警申请
export function createUserPoliAppl(data) {
  return request({
    url: '/bussiness/PoliceApply/add',
    method: 'post',
    data: data,
    isEncrypt: false
  })
}

// 修改用警申请
export function editUserPoliAppl(data) {
  return request({
    url: '/bussiness/PoliceApply/edit',
    method: 'post',
    data: data,
    isEncrypt: false
  })
}

// 删除用户
export function deleteUserPoliAppl(PoliceApplyId) {
  return request({
    url: '/bussiness/PoliceApply/remove?ids=' + PoliceApplyId,
    method: 'post',
    isEncrypt: false
  })
}


//法警负责人-审批列表 /dev-api/bussiness/PoliceApply/depList
export function PoliceApplydepList(data,query) {
  return request({
    url: '/bussiness/PoliceApply/depList',
    method: 'post',
    isEncrypt: false,
    params: query,
    data: data,
  })
}
//法警负责人确认并派警 /dev-api/bussiness/PoliceApply/depConfirm
export function PoliceApplydepConfirm(data) {
  return request({
    url: '/bussiness/PoliceApply/depConfirm',
    method: 'post',
    isEncrypt: false,
    data: data,
  })
}
//法警负责人-提交分管领导   /dev-api/bussiness/PoliceApply/forLeaderConfirm
export function PoliceApplyforLeader(data) {
  return request({
    url: '/bussiness/PoliceApply/forLeaderConfirm',
    method: 'post',
    isEncrypt: false,
    data: data,
  })
}

//法警负责人回退 /dev-api/bussiness/PoliceApply/cancelDepConfirm
export function PoliceApplycancel(data) {
  return request({
    url: '/bussiness/PoliceApply/cancelDepConfirm',
    method: 'post',
    isEncrypt: false,
    data: data,
  })
}
//法警负责人取消 /dev-api/bussiness/PoliceApply/applyCancel
export function PoliceApplyapplyCancel(data) {
  return request({
    url: '/bussiness/PoliceApply/applyCancel',
    method: 'post',
    isEncrypt: false,
    data: data,
  })
}


//分管领导-审批列表/dev-api/bussiness/PoliceApply/leaderList
export function PoliceApplyleaderList(data) {
  return request({
    url: '/bussiness/PoliceApply/leaderList',
    method: 'post',
    isEncrypt: false,
    data: data
  })
}


//分管领导-确认审批  /dev-api/bussiness/PoliceApply/leaderConfirm
export function PoliceApplyleaderConfirm(data) {
  return request({
    url: '/bussiness/PoliceApply/leaderConfirm',
    method: 'post',
    isEncrypt: false,
    data: data
  })
}

//分管领导-回退  /dev-api/bussiness/PoliceApply/cancelLeaderConfirm
export function PoliceApplycancelLeaderConfirm(data) {
  return request({
    url: '/bussiness/PoliceApply/cancelLeaderConfirm',
    method: 'post',
    isEncrypt: false,
    data: data
  })
}


//待办事宜总数--法警负责人 标签  /bussiness/PoliceApply/depListTotal
export function PoliceApplydepListTotal() {
  return request({
    url: '/bussiness/PoliceApply/depListTotal',
    method: 'post',
    isEncrypt: false,
  })
}
//待办事宜总数--分管领导 标签  /bussiness/PoliceApply/leaderListTotal
export function PoliceApplyleaderListTotal() {
  return request({
    url: '/bussiness/PoliceApply/leaderListTotal',
    method: 'post',
    isEncrypt: false,
  })
}
